package com.fast.cms.constant;

/**
 * 秘密等级
 * 0为待审核,1为已审核确认,2为审核末通过
 * @author lushuifa242
 */
public enum CheckStatusEnum {
	
	/**
	 * 1待审批
	 */
	dontStart(0,"待审批"),
	
	
	/**
	 * 已审核确认
	 */
	agree(1,"已审核确认"),
	
	/**
	 * 审核末通过
	 */
	refuse(2,"审核末通过"),
	
;
	
	private int code;
	private String value;
	
	CheckStatusEnum(int code,String value){
		this.code = code;
		this.value = value;
	}
	
	// 获取对应的文本
	public static String getName(int code) {
		for (CheckStatusEnum c : CheckStatusEnum.values()) {
		  if (c.getCode() == code) {
		     return c.value;
		  }
		}
		return null;
	}
	
	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}
}
